package jicheng1;

public class Pet {
    private String name;
    private int helth;
    private int love;
    private String sex;

    public Pet(String name, int helth, int love, String sex) {
        this.name = name;
        this.helth = helth;
        this.love = love;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String kind) {
        this.name = name;
    }

    public int getHelth() {
        return helth;
    }

    public void setHelth(int helth) {
        this.helth = helth;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void print(){
        System.out.println("这是一只宠物，名字叫"+name);
        System.out.println("健康值"+helth+".可爱度"+this.love);
        System.out.println("性别是"+this.sex);
    }
}
